/**
 * @(#)com.pattern.p_02_observer.oo.NoticeTemplate
 *
 * Copyright (c) 2014-2018 上海纬视瑞科技有限公司
 *
 * DESC:
 *
 */
package com.pattern.p_02_observer.oo;

import com.pattern.util.Log;

/**
 * 公告板
 *
 * @author fusf
 * @version 1.0  2016/11/3
 */
public class CurrentConditions {

    private float temperature;//温度
    private float humidity;//气压
    private float pressure;//湿度

    public void update(float temperature, float humidity, float pressure) {
        this.temperature = temperature;
        this.humidity = humidity;
        this.pressure = pressure;
        display();
    }

    public void display() {
        Log.info("temperature:" + temperature);
        Log.info("humidity:" + humidity);
        Log.info("pressure:" + pressure);

    }

}
